using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting.Antlr3.Runtime.Tree;
using UnityEngine;
using UnityEngine.UI;

public abstract class TalentBasic : MonoBehaviour
{
    // Start is called before the first frame update
    Button btn;
    void Start()
    {
        btn = this.GetComponent<Button>();
        btn.onClick.AddListener(OnClick);
    }
    public virtual void OnClick()
    {
        //Debug.Log("Button Clicked. ClickHandler.");
        btn.interactable = false;
        PlayerData.coninsfortalent--;
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
